<html>
	<head>
		<title>观察者模式</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<script>
			/*门面1*/
			function addEvent(el, type, fn) {
				if (el.addEventListener) {
					el.addEventListener(type, fn, false)
				} else if (el.attachEvent) {
					el.attachEvent('on' + type, fn)
				} else {
					el['on' + type] = fn
				}
			}

			/*门面2*/
			function stop(e) {
				e.stopPropagation()
				e.preventDefault()
			}
		</script>
	</head>
	<body></body>
</html>